package net.trustie.dao;

import net.trustie.model.csdn_topic_Model;

import org.apache.ibatis.annotations.Insert;

public interface CsdnTopic_Dao {

	/*标准表中的字段*//*+ "insert into t_knowledge (`deal_title`,`author`,`content`,`tags`,`reply_num`,
	 * `view_num`,`vote_num`,`collection_num`,`abstract`,`type`,`crawled_time`,`url`,`created_time`,
	 * `category`,`source`,`history`,`author_url`,`last_time`,`url_md5`")*/
	
	/*标准表中含有的字段 #{view_num},#{vote_num},#{collection_num},#{abstract},#{type},#{crawled_time},
	 * #{category},#{source},#{last_time},#{url_md5}
	*/
	
	@Insert("insert into csdn_bbs"
			+ "(`title`,`url`,`content`,`tags`,`review_num`,`created_time`,"
			+ "`extracted_time`,`author`,`author_url`,`type`,`url_md5`,`dislike_num`,`favor_num`,`source`,`share_num`)"
						
			+ "values (#{topicTitle},#{topicUrl},#{topicContent},#{tag},#{replyNum},"
			+ "#{postTime},#{extractTime},#{author},#{author_url},#{type},#{topicUrlMD5 },#{dislike_num},#{favor_num},#{source},#{shareNum})")
	
	/*1标准表中独有,设置为允许为空,INSERT需要补齐*/
    /*2与标准表对应字段*/
   /*3原社区中独有保留字段*/
	
			/*+ "values (#{3topicId},#{2deal_title},#{2url},#{2content},#{2tags},#{3topicScore},#{2reply_num},"
			+ "#{2created_time},#{3extractTime},#{3pageMD5},#{2history},#{2author},#{2author_url},#{reply_num},"
			+ "#{view_num},#{vote_num},#{collection_num},#{abstract},"
			+ "#{type},#{crawled_time},#{category},#{source},#{last_time},#{url_md5})")*/
	
	public int add(csdn_topic_Model cModel);
}
